package com.kob.botrunningsysytem.service.impl;

import com.kob.botrunningsysytem.service.BotRunningSystemService;
import com.kob.botrunningsysytem.service.impl.utils.BotPool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BotRunningSystemServiceImpl implements BotRunningSystemService {
    public final static BotPool botPool=new BotPool();
    @Override
    public String addBot(Integer userId, String botCode, String input) {
        System.out.println("用户"+userId+"创建了"+botCode+",botcode为:"+input);
        botPool.addBot(userId,botCode,input);
        return "add bot successfully";
    }
}
